package org.jeecg.modules.system.api;
import org.jeecg.modules.finance.api.fallback.FinanceHelloFallback;
import org.jeecg.modules.system.api.fallback.SystemApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "jeecg-system", fallbackFactory = SystemApiFallback.class)
public interface SystemApi {

    /**
     * 更新用户余额
     * @param userId
     * @param balance
     */
    @PostMapping("/sys/api/updateBalance")
    public Boolean updateBalance(@RequestParam String userId, @RequestParam Boolean isIncome,@RequestParam  BigDecimal balance);
}
